package cn.tang.tframe.sdm.web.shiro.session;

import org.apache.shiro.session.mgt.SimpleSession;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 此Session的过期时间可以来源于配置文件
 * 
 * @author tanghc
 *
 */
@Component
@Scope("prototype")
public class AppSession extends SimpleSession implements Serializable {
//	private long loginTimeoutSec;
	/**
	 * 
	 */
	private static final long serialVersionUID = 3895214158821425745L;

	public AppSession(long timeout) {
		super();
		this.setTimeout(timeout);
	}

	public AppSession(String host, long timeout) {
		super(host);
		this.setTimeout(timeout);
	}

//	public long getLoginTimeoutSec() {
//		return loginTimeoutSec;
//	}
//
//	public void setLoginTimeoutSec(long loginTimeoutSec) {
//		this.loginTimeoutSec = loginTimeoutSec;
//	}
}
